﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using WLYT.Application.Interfaces;
using WLYT.Domain.Model;

namespace WLYT.Admin.WebApi.Controllers
{
    public class AGV_ListController : BaseController
    {
        private readonly IAGV_ListService AGV_ListService;

        public AGV_ListController(IAGV_ListService _aGV_ListService)
        {
            AGV_ListService = _aGV_ListService;
        }

        /// <summary>
        /// 获取实体
        /// </summary>
        /// <param name="id">id</param>
        /// <returns></returns>
        [HttpGet]
        public async Task<AGV_List> Get(int id)
        {
            AGV_List model = await AGV_ListService.Get(a => a.AgvId == id);
            return model;
        }
    }
}